/**
 * 404 页面
 */
"use client";
import React from "react";
import { Button } from "antd";
import { Page404All } from "./globals";

import { useRouter } from "next/navigation";

export default function NotFound() {
  const history = useRouter();
  const handleGoBack = () => {
    history.back();
  };
  return (
    <Page404All>
      <div className="head404"></div>
      <div className="txtbg404">
        <div className="txtbox">
          <p>对不起，您请求的页面不存在、或已被删除、或暂时不可用</p>
          <p className="paddingbox">请点击以下链接继续浏览网页</p>
          <p>
            》
            <Button type="link" onClick={handleGoBack}>
              返回上一页面
            </Button>
          </p>
        </div>
      </div>
    </Page404All>
  );
}
